Skip to content

support short prop declaration as prop: true #3643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 10, 2016
Merged

Conversation

trailskr
Copy link
Contributor

@trailskr trailskr commented Sep 8, 2016

Vue 1 support this form of prop declaration:
props: { someProp: true }
https://jsfiddle.net/89a15uby/
Vue 2 throw an error Right-hand side of 'instanceof' is not an object
https://jsfiddle.net/jbovp90x/

@@ -1,4 +1,4 @@
<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
https://github.com/vuejs/vue/blob/dev/CONTRIBUTING.md#pull-request-guidelines
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is using the url for the next branch files, no need to touch it. Also it's usually a good idea to keep a PR focused on one thing only.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. Reverted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants